﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DO.Domain.AppServices
{
    public class Container
    {
        private static Container InternalInstance;

        private Container() { }

        private static Container Instance()
        {
            if (InternalInstance != null)
            {
                return InternalInstance;
            }
            InternalInstance = new Container();
            return InternalInstance;
        }

        public static IGlobalContext GlobalContext
        {
            get { return AppServices.GlobalContext.GlobalContextInstance(); }
        }

        public static IRequestContext RequestContext {get; set;}
    }
}
